home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1996-06-01 | 2.5 KB | [ ftFC/NLft]
open in: MacOS 8.1
extracted
|
Win98
extracted
|
DOS
extracted
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary ).
You can browse this item here: spring
Confidence Program Detection Match Type Support
10%
dexvert
MacBinary (archive/macBinary)
fallback
Supported
10%
dexvert
Jesper Olsen Module (music/jesperOlsen)
magic
Supported
100%
file
MacBinary II, Sat Jun 1 12:24:33 1996, modified Sat Jun 1 12:24:33 1996, creator 'NLft', type 'ftFC', 1412 bytes "spring" , at 0x604 815 bytes resource
default (weak)
99%
file
data
default
66%
TrID
TTComp archive compressed (bin-4K)
default (weak)
33%
TrID
MacBinary 2
default (weak)
100%
lsar
MacBinary
default
id metadata key value macFileType [ ftFC] macFileCreator [ NLft]
hex view +--------+-------------------------+-------------------------+--------+--------+ |00000000| 00 06 73 70 72 69 6e 67 | 00 00 00 00 00 00 00 00 |..spring|........| |00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000040| 00 66 74 46 43 4e 4c 66 | 74 00 00 00 00 00 00 00 |.ftFCNLf|t.......| |00000050| 00 00 00 00 00 05 84 00 | 00 03 2f ad d6 1f 41 ad |........|../...A.| |00000060| d6 1f 41 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..A.....|........| |00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 9f e7 00 00 |........|........| |00000080| 7b 0d 09 54 68 69 73 20 | 70 72 6f 67 72 61 6d 20 |{..This |program | |00000090| 64 72 61 77 73 20 61 20 | 73 70 72 69 6e 67 2d 6c |draws a |spring-l| |000000a0| 69 6b 65 20 73 79 6d 62 | 6f 6c 20 61 74 20 74 68 |ike symb|ol at th| |000000b0| 65 20 6c 61 73 74 20 63 | 6c 69 63 6b 65 64 0d 09 |e last c|licked..| |000000c0| 70 6f 69 6e 74 20 69 6e | 20 74 68 65 20 64 72 61 |point in| the dra| |000000d0| 77 69 6e 67 20 77 69 6e | 64 6f 77 2e 0d 09 0d 09 |wing win|dow.....| |000000e0| 54 68 69 73 20 70 72 6f | 67 72 61 6d 20 64 6f 65 |This pro|gram doe| |000000f0| 73 20 6e 6f 74 20 62 72 | 69 6e 67 20 75 70 20 61 |s not br|ing up a| |00000100| 6e 79 20 64 69 61 6c 6f | 67 20 62 6f 78 2e 20 54 |ny dialo|g box. T| |00000110| 68 65 20 64 69 6d 65 6e | 73 69 6f 6e 73 20 6f 66 |he dimen|sions of| |00000120| 20 74 68 65 0d 09 22 73 | 70 72 69 6e 67 22 20 61 | the.."s|pring" a| |00000130| 6e 64 20 69 74 73 20 6f | 72 69 65 6e 74 61 74 69 |nd its o|rientati| |00000140| 6f 6e 20 61 72 65 20 73 | 65 74 20 69 6e 20 74 68 |on are s|et in th| |00000150| 65 20 70 72 6f 63 65 64 | 75 72 65 20 69 6e 69 74 |e proced|ure init| |00000160| 69 61 6c 69 7a 65 2c 20 | 62 65 6c 6f 77 2e 0d 09 |ialize, |below...| |00000170| 0d 09 54 6f 20 75 73 65 | 20 74 68 65 20 70 72 6f |..To use| the pro| |00000180| 67 72 61 6d 2c 20 68 69 | 74 20 63 6d 64 2d 4c 20 |gram, hi|t cmd-L | |00000190| 28 6f 72 20 63 6c 69 63 | 6b 20 74 68 65 20 41 64 |(or clic|k the Ad| |000001a0| 64 20 62 75 74 74 6f 6e | 29 2c 20 6c 6f 6f 6b 20 |d button|), look | |000001b0| 61 74 20 69 74 73 20 0d | 09 6b 65 79 62 6f 61 72 |at its .|.keyboar| |000001c0| 64 20 65 71 75 69 76 61 | 6c 65 6e 74 20 69 6e 20 |d equiva|lent in | |000001d0| 74 68 65 20 4d 69 73 63 | 20 6d 65 6e 75 2c 20 63 |the Misc| menu, c| |000001e0| 6c 69 6b 20 69 6e 20 74 | 68 65 20 64 72 61 77 69 |lik in t|he drawi| |000001f0| 6e 67 20 77 69 6e 64 6f | 77 2c 20 0d 09 61 6e 64 |ng windo|w, ..and| |00000200| 20 72 75 6e 20 74 68 65 | 20 70 72 6f 67 72 61 6d | run the| program| |00000210| 2e 20 54 68 65 6e 20 63 | 6c 69 63 6b 20 73 6f 6d |. Then c|lick som| |00000220| 65 77 68 65 72 65 20 65 | 6c 73 65 20 61 6e 64 20 |ewhere e|lse and | |00000230| 72 75 6e 20 74 68 65 20 | 70 72 6f 67 72 61 6d 20 |run the |program | |00000240| 61 67 61 69 6e 2e 20 0d | 7d 0d 0d 0d 70 72 6f 67 |again. .|}...prog| |00000250| 72 61 6d 20 64 72 61 77 | 53 70 72 69 6e 67 3b 0d |ram draw|Spring;.| |00000260| 76 61 72 20 61 6e 67 2c | 68 2c 76 2c 20 4c 65 6e |var ang,|h,v, Len| |00000270| 2c 77 69 64 74 68 2c 70 | 65 72 69 6f 64 4c 65 6e |,width,p|eriodLen| |00000280| 67 74 68 3a 72 65 61 6c | 3b 0d 20 20 20 20 69 2c |gth:real|;. i,| |00000290| 6e 75 6d 50 65 72 69 6f | 64 73 3a 69 6e 74 65 67 |numPerio|ds:integ| |000002a0| 65 72 3b 0d 0d 70 72 6f | 63 65 64 75 72 65 20 69 |er;..pro|cedure i| |000002b0| 6e 69 74 69 61 6c 69 7a | 65 3b 0d 62 65 67 69 6e |nitializ|e;.begin| |000002c0| 0d 09 09 4c 65 6e 3a 3d | 31 30 3b 09 09 20 20 20 |...Len:=|10;.. | |000002d0| 20 09 09 09 09 20 20 20 | 20 7b 20 74 68 65 20 6c | .... | { the l| |000002e0| 65 6e 67 74 68 20 6f 66 | 20 74 68 65 20 74 77 6f |ength of| the two| |000002f0| 20 6c 69 6e 65 73 20 61 | 74 20 74 68 65 20 62 65 | lines a|t the be| |00000300| 67 69 6e 6e 69 6e 67 20 | 61 6e 64 20 65 6e 64 20 |ginning |and end | |00000310| 6f 66 20 74 68 65 20 22 | 73 70 72 69 6e 67 22 20 |of the "|spring" | |00000320| 7d 0d 09 09 77 69 64 74 | 68 3a 3d 31 30 3b 09 09 |}...widt|h:=10;..| |00000330| 09 09 20 20 20 20 20 20 | 20 20 7b 20 74 68 65 20 |.. | { the | |00000340| 6c 61 74 65 72 61 6c 20 | 77 69 64 74 68 20 7d 0d |lateral |width }.| |00000350| 09 09 70 65 72 69 6f 64 | 4c 65 6e 67 74 68 3a 3d |..period|Length:=| |00000360| 35 3b 09 09 09 09 09 09 | 7b 20 74 68 65 20 72 65 |5;......|{ the re| |00000370| 70 65 74 69 74 69 6f 6e | 20 6c 65 6e 67 74 68 20 |petition| length | |00000380| 20 7d 0d 09 09 61 6e 67 | 3a 3d 33 30 3b 20 20 20 | }...ang|:=30; | |00000390| 20 20 20 20 20 20 20 20 | 20 20 20 7b 20 74 68 65 | | { the| |000003a0| 20 6f 72 69 65 6e 74 61 | 74 69 6f 6e 20 6f 66 20 | orienta|tion of | |000003b0| 74 68 65 20 22 73 70 72 | 69 6e 67 22 20 69 6e 20 |the "spr|ing" in | |000003c0| 64 65 67 72 65 65 73 20 | 7d 0d 09 09 6e 75 6d 50 |degrees |}...numP| |000003d0| 65 72 69 6f 64 73 3a 3d | 37 3b 09 09 09 20 20 20 |eriods:=|7;... | |000003e0| 20 20 7b 20 68 6f 77 20 | 6d 61 6e 79 20 74 69 6d | { how |many tim| |000003f0| 65 73 20 74 68 65 20 62 | 61 73 69 63 20 65 6c 65 |es the b|asic ele| |00000400| 6d 65 6e 74 20 69 73 20 | 72 65 70 65 61 74 65 64 |ment is |repeated| |00000410| 20 7d 0d 09 09 0d 09 09 | 61 6e 67 3a 3d 61 6e 67 | }......|ang:=ang| |00000420| 2a 70 69 2f 31 38 30 3b | 20 09 20 20 20 20 7b 20 |*pi/180;| . { | |00000430| 6d 6f 76 65 20 74 6f 20 | 72 61 64 69 61 6e 73 7d |move to |radians}| |00000440| 0d 65 6e 64 3b 0d 0d 70 | 72 6f 63 65 64 75 72 65 |.end;..p|rocedure| |00000450| 20 6c 28 78 2c 79 3a 72 | 65 61 6c 29 3b 0d 7b 20 | l(x,y:r|eal);.{ | |00000460| 70 65 72 66 6f 72 6d 73 | 20 61 20 72 6f 74 61 74 |performs| a rotat| |00000470| 69 6f 6e 20 6f 66 20 74 | 68 65 20 63 6f 6f 72 64 |ion of t|he coord| |00000480| 69 6e 61 74 65 73 20 61 | 6e 64 20 69 73 73 75 65 |inates a|nd issue| |00000490| 73 20 61 20 22 6c 69 6e | 65 22 20 63 6f 6d 6d 61 |s a "lin|e" comma| |000004a0| 6e 64 20 7d 0d 62 65 67 | 69 6e 0d 09 6c 69 6e 65 |nd }.beg|in..line| |000004b0| 28 63 6f 73 28 61 6e 67 | 29 2a 78 2b 73 69 6e 28 |(cos(ang|)*x+sin(| |000004c0| 61 6e 67 29 2a 79 2c 2d | 73 69 6e 28 61 6e 67 29 |ang)*y,-|sin(ang)| |000004d0| 2a 78 20 2b 20 63 6f 73 | 28 61 6e 67 29 2a 79 29 |*x + cos|(ang)*y)| |000004e0| 3b 0d 65 6e 64 3b 0d 0d | 62 65 67 69 6e 0d 09 09 |;.end;..|begin...| |000004f0| 47 65 74 43 6c 69 63 6b | 65 64 43 6f 6f 72 64 28 |GetClick|edCoord(| |00000500| 68 2c 76 29 3b 0d 20 20 | 6f 70 65 6e 70 6f 6c 79 |h,v);. |openpoly| |00000510| 28 30 2c 30 29 3b 0d 20 | 20 6d 6f 76 65 74 6f 28 |(0,0);. | moveto(| |00000520| 68 2c 76 29 3b 0d 20 20 | 6c 28 4c 65 6e 2c 30 29 |h,v);. |l(Len,0)| |00000530| 3b 0d 20 20 6c 28 70 65 | 72 69 6f 64 4c 65 6e 67 |;. l(pe|riodLeng| |00000540| 74 68 2f 32 2c 2d 77 69 | 64 74 68 2f 32 29 3b 0d |th/2,-wi|dth/2);.| |00000550| 20 20 66 6f 72 20 69 3a | 3d 31 20 74 6f 20 6e 75 | for i:|=1 to nu| |00000560| 6d 50 65 72 69 6f 64 73 | 20 64 6f 0d 20 20 62 65 |mPeriods| do. be| |00000570| 67 69 6e 0d 20 20 09 6c | 28 70 65 72 69 6f 64 4c |gin. .l|(periodL| |00000580| 65 6e 67 74 68 2c 77 69 | 64 74 68 29 3b 0d 09 20 |ength,wi|dth);.. | |00000590| 20 6c 28 70 65 72 69 6f | 64 4c 65 6e 67 74 68 2c | l(perio|dLength,| |000005a0| 2d 77 69 64 74 68 29 3b | 0d 20 20 65 6e 64 3b 0d |-width);|. end;.| |000005b0| 20 20 6c 28 70 65 72 69 | 6f 64 4c 65 6e 67 74 68 | l(peri|odLength| |000005c0| 2c 77 69 64 74 68 29 3b | 0d 20 20 6c 28 70 65 72 |,width);|. l(per| |000005d0| 69 6f 64 4c 65 6e 67 74 | 68 2f 32 2c 2d 77 69 64 |iodLengt|h/2,-wid| |000005e0| 74 68 2f 32 29 3b 0d 09 | 09 6c 28 4c 65 6e 2c 30 |th/2);..|.l(Len,0| |000005f0| 29 3b 0d 20 20 63 6c 6f | 73 65 70 6f 6c 79 3b 0d |);. clo|sepoly;.| |00000600| 65 6e 64 3b 00 00 00 00 | 00 00 00 00 00 00 00 00 |end;....|........| |00000610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000680| 00 00 01 00 00 00 02 b9 | 00 00 01 b9 00 00 00 76 |........|.......v| |00000690| 72 4a 65 74 20 34 20 50 | 6c 75 73 00 ff ff 00 00 |rJet 4 P|lus.....| |000006a0| 00 00 00 00 00 2f 00 00 | 00 00 00 00 00 00 00 00 |...../..|........| |000006b0| 06 73 70 72 69 6e 67 b4 | 02 00 00 00 50 61 72 74 |.spring.|....Part| |000006c0| 53 49 54 21 00 00 00 00 | 00 00 00 00 00 00 33 a3 |SIT!....|......3.| |000006d0| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......| |000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000006f0| 00 00 ae 78 05 c1 00 00 | 00 00 00 00 03 2f 00 00 |...x....|...../..| |00000700| 00 02 00 03 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000710| 00 0e 00 00 00 00 00 04 | 00 00 00 02 00 07 00 00 |........|........| |00000720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 02 |........|........| |00000730| 00 03 00 05 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000740| 00 0f 00 00 00 00 00 02 | 00 06 00 00 00 00 00 00 |........|........| |00000750| 00 00 00 00 00 00 00 10 | 00 00 00 00 00 07 00 00 |........|........| |00000760| 00 02 00 07 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000770| 00 00 00 00 00 02 00 03 | 00 08 00 00 00 00 00 00 |........|........| |00000780| 00 00 00 08 00 37 00 23 | 01 c9 02 76 00 00 01 06 |.....7.#|...v....| |00000790| 00 04 00 09 00 00 06 4d | 6f 6e 61 63 6f 2a 40 82 |.......M|onaco*@.| |000007a0| c6 08 00 00 00 e6 b0 b6 | 00 d4 33 80 00 d4 33 7c |........|..3...3|| |000007b0| 00 d4 e9 86 00 08 00 e6 | a9 24 40 82 c5 02 00 00 |........|.$@.....| |000007c0| 00 e6 b0 b6 00 d4 33 80 | 00 d4 33 7c 00 d4 e9 6c |......3.|..3|...l| |000007d0| 00 08 00 e6 a5 f0 00 e6 | a5 f8 00 e6 a6 00 00 d4 |........|........| |000007e0| e9 4e 00 00 00 00 00 d4 | e9 4e 00 e6 a9 80 40 82 |.N......|.N....@.| |000007f0| c1 d2 00 d4 e9 6c 00 08 | 00 e6 aa ac 40 82 c3 90 |.....l..|....@...| |00000800| 00 e6 a9 64 00 00 00 00 | 00 00 00 00 00 48 00 ff |...d....|.....H..| |00000810| 00 00 00 08 00 01 00 08 | 00 d7 9a 03 ff 00 00 81 |........|........| |00000820| 00 08 00 00 ff ff ff ff | 00 00 00 00 00 00 00 e6 |........|........| |00000830| aa ac 40 82 c1 90 00 e6 | a9 92 40 82 00 00 00 00 |..@.....|..@.....| |00000840| 00 d4 2e 8e 00 e6 aa b4 | 40 83 19 82 00 ab 01 f4 |........|@.......| |00000850| 00 00 00 00 00 d4 33 7c | 00 c8 c3 6c 00 c8 c3 6c |......3||...l...l| |00000860| 00 e6 a9 ac 00 e6 aa ac | 00 01 00 00 00 81 ff ff |........|........| |00000870| 00 08 00 00 00 00 00 12 | 00 29 ff fd 00 0c ff 64 |........|.).....d| |00000880| 72 00 00 00 ff 00 00 03 | 00 01 40 ff 00 00 00 00 |r.......|..@.....| |00000890| 00 06 00 0b 80 00 00 00 | 00 10 00 00 00 00 00 00 |........|........| |000008a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 04 00 00 |........|........| |000008b0| 00 01 00 00 00 78 00 03 | 00 00 00 48 00 48 00 00 |.....x..|...H.H..| |000008c0| 00 00 03 00 02 4c ff f4 | ff f4 03 0c 02 58 03 47 |.....L..|.....X.G| |000008d0| 05 28 03 fc 00 02 00 00 | 00 48 00 48 00 00 00 00 |.(......|.H.H....| |000008e0| 02 d8 02 28 00 01 00 00 | 00 64 00 00 00 01 00 03 |...(....|.d......| |000008f0| 03 03 00 00 00 01 27 0f | 00 01 00 01 00 00 00 00 |......'.|........| |00000900| 00 00 00 00 00 00 00 00 | 68 08 00 19 01 90 00 00 |........|h.......| |00000910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000930| 00 07 06 70 72 6f 46 69 | 74 00 00 01 00 00 00 02 |...proFi|t.......| |00000940| b9 00 00 01 b9 00 00 00 | 76 00 d4 3a 0c 10 e6 00 |........|v..:....| |00000950| 00 00 1c 00 76 00 01 66 | 49 4e 46 00 04 00 12 53 |....v..f|INF....S| |00000960| 54 52 20 00 00 00 4e 00 | 81 ff ff 00 00 00 00 00 |TR ...N.|........| |00000970| d4 2b bc 00 82 ff ff 00 | 00 00 0c 00 d4 2b 7c 00 |.+......|.....+|.| |00000980| 83 ff ff 00 00 01 16 00 | d4 2b cc 00 85 ff ff 00 |........|.+......| |00000990| 00 01 2a 00 d4 2d 44 00 | 84 ff ff 00 00 01 32 00 |..*..-D.|......2.| |000009a0| d4 2c fc bf f4 ff ff 00 | 00 01 ae 00 d4 2b ac 00 |.,......|.....+..| |000009b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000009c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000009d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000009e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000009f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| +--------+-------------------------+-------------------------+--------+--------+